#include "statement.h"

namespace TA {

    Statement::Statement(QObject *parent) : QObject(parent) {

    }

    QString Statement::getText() const {
        return text;
    }

    void Statement::setText(const QString &value) {
        text = value;
    }

    int Statement::getBeginPos() const {
        return beginPos;
    }

    void Statement::setBeginPos(int value) {
        beginPos = value;
    }

    WordType Statement::getType() const {
        return type;
    }

    void Statement::setType(const WordType &value) {
        type = value;
    }

    Document *Statement::getDocument() const {
        return this->document;
    }

    void Statement::setDocument(Document *value) {
        document = value;
    }
}

QDebug operator<<(QDebug debug, const TA::Statement &s)
{
    debug<<"---------------------------------\n";

    debug<<s.getText();

    return debug;
}
